﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="DanhMucThucDon.aspx.cs" Inherits="DanhMucThucDon" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="place1" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="place2" runat="Server">
    <fieldset class="FieldsetTitle">
        <legend class="LegendTitle">Danh Sách Thực Đơn </legend>
        <div class="std">
            <asp:DataList ID="dataListSP" runat="server" CellPadding="3" BackColor="#cccccc"
                BorderWidth="1px" CellSpacing="2" BorderStyle="None" BorderColor="#cccccc" GridLines="Both"
                DataKeyField="MenuId" RepeatDirection="Horizontal" RepeatColumns="3" OnSelectedIndexChanged="dataListSP_SelectedIndexChanged">
                <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#efefef"></SelectedItemStyle>
                <ItemStyle ForeColor="#8C4510" BackColor="#efefef"></ItemStyle>
                <FooterStyle ForeColor="#8C4510" BackColor="#003772"></FooterStyle>
                <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#003772"></HeaderStyle>
                <HeaderTemplate>
                    Danh Sách Sản Phẩm
                </HeaderTemplate>
  
              <ItemTemplate>
                    <div class="product">
                        <div>
                            <table width="100%">                                
                                <tr>
                                    <td>
                                        <b>Tên Sản Phẩm : </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "Name")%>'
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Giá : </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "Cost")%>' &nbsp;NVD
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Ngày lập : </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "CreateDate")%>' 
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Số Lượng tồn: </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "inventory")%>'
                                    </td>
                                </tr>
                               <tr>
                                <td> Mua hàng
                                    <div id="Div1" class="productimage" runat="server">                                                                       
                                            <a href='ShoppingCart.aspx?maSanPham=<%# Eval("MenuId") %>'>
                                                <img id="Img1" src="images/shopcart.gif" alt="Chi tiết sản phẩm" 
                                                    runat="server" />
                                            </a>
                                            </div>
                                </td>
                               </tr>
                                  <tr>                                    
                                    <td colspan="2" style="color:Blue;border:1;">
                                        <a href='ChitietThucDon.aspx?maSanPham=<%# Eval("MenuId") %>'> Chi tiết sản phẩm                                                
                                            </a>
                                    </td>
                                </tr>   
                            </table>
                        </div>
                    </div>
                </ItemTemplate>
                <AlternatingItemStyle HorizontalAlign="Left" />
            </asp:DataList>
            <table border="0" width="100%">
                <tr>
                    <td>
                    </td>
                    <td align="left">
                        <asp:LinkButton ID="lbtnPrev" runat="server">Prev</asp:LinkButton></td>
                    <td align="left">
                        <asp:LinkButton ID="lbtnNext" runat="server">Next</asp:LinkButton></td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
    </fieldset>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="place3" runat="Server">
</asp:Content>
